package eu.best.sercheng.model;

public class ResultQuery implements Comparable<ResultQuery> {

	private String URL;
	private int quantity;
	
	public String getURL() {
		return URL;
	}
	public void setURL(String uRL) {
		URL = uRL;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	@Override
	public int compareTo(ResultQuery arg) {
		if(arg==null){
			return 0;
		}
		return new Integer(quantity).compareTo(arg.getQuantity());
	}
	
	@Override
	public String toString() {
		return "ResultQuery [URL=" + URL + ", quantity=" + quantity + "]";
	}
	
	
	
	
	
}
